package com.xiaoshuidi.cloud.module.contract.controller.admin.contract.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigDecimal;
import javax.validation.constraints.*;

/**
* 合同杂费 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class ContractExtrasDataBaseVO {

    @Schema(description = "关联租客合同", required = true)
    @NotNull(message = "关联租客合同不能为空")
    private Long contractId;

    @Schema(description = "杂费分类| cycle 周期性费用 | once 一次性费用  |deposit 押金费用 | meter 抄表费用", required = true)
    @NotNull(message = "杂费分类| cycle 周期性费用 | once 一次性费用  |deposit 押金费用 | meter 抄表费用不能为空")
    private String feeSort;

    @Schema(description = "费项编号(关联Fee表)", required = true)
    @NotNull(message = "费项编号(关联Fee表)不能为空")
    private Long feeId;

    @Schema(description = "费项名称", required = true)
    @NotNull(message = "费项名称不能为空")
    private String feeName;

    @Schema(description = "费项金额", required = true)
    @NotNull(message = "费项金额不能为空")
    private BigDecimal amount;

    @Schema(description = "付几  |  付款周期", required = true)
    @NotNull(message = "付几  |  付款周期不能为空")
    private Integer payMethodF;

    @Schema(description = "压几", required = true)
    @NotNull(message = "压几不能为空")
    private Integer payMethodY;

    @Schema(description = "优惠类型 cycle 周期性优惠 | once 一次性优惠")
    private String discountSort;

    @Schema(description = "优惠方式 rate 优惠比例 % | amount 优惠金额 元/月 | once 优惠金额 元")
    private String discountType;

    @Schema(description = "一次性优惠金额计入首期或末期账单 first 计入首期账单 | last 计入末期账单")
    private String discountOrder;

    @Schema(description = "优惠值")
    private BigDecimal discountValue;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "版本号", required = true)
    @NotNull(message = "版本号不能为空")
    private Long version;

}
